package com.tender.controller;

import com.tender.service.LockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redisson")
public class RedissonController {

    @Autowired
    private LockService lockService;

    @RequestMapping("/purchase")
    public String purchase() {
        lockService.purchase();
        return "success";
    }

}
